package com.snake.repositories;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.snake.mapper.ShareLinkMapper;
import com.snake.models.ActivityShareLink;


@Service
public class ShareLinkServiceImpl implements ShareLinkService {
	@Autowired
	private ShareLinkMapper shareLinkMapper;

	@Override
	public ActivityShareLink add(ActivityShareLink t) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ActivityShareLink delete(ActivityShareLink t) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ActivityShareLink update(ActivityShareLink t) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ActivityShareLink getById(int id) {
		// TODO Auto-generated method stub
		Map<String, Object> params=new HashMap<String, Object>();
		params.put("shareLinkId", id);
		ActivityShareLink byId = shareLinkMapper.getById(params);
		return byId;
	}

	@Override
	public List<ActivityShareLink> getByList(Map<String, Object> params) {
		// TODO Auto-generated method stub
		List<ActivityShareLink> byList = shareLinkMapper.getByList(params);
		return byList;
	}
	
}
